package org.meetunexpectedly.entity.vo;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @Description: 验证码
 * @Author: pupil
 * @Date: 2024/08/03 下午 7:50
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Captcha implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotBlank(message = "uuid为空")
    private String uuid; // uuid

    @NotBlank(message = "code为空")
    private String code; // 具体验证码

    @Email
    private String email; // 邮箱

    @NotBlank(message = "model为空")
    private String model; // 0 为注册模式    1 为忘记密码模式
}
